package com.atguigu.gulimall.search.vo;

import lombok.Data;

import java.util.List;

/**
 * @author tianxinyu
 * @create 2020-12-13 12:54
 * 封装页面所有可能的传递条件
 */
@Data
public class SearchParam {
    private String keyword; //页面传递过滤的全文匹配关键字
    private Long catalog3Id;    //三级分类id
    /**
     * sort=saleCount_osc/desc
     * sort=skuPrice_asc/desc
     * sort=hotScore_asc/desc
     */
    private String sort;    //排序条件
    /**
     * 好多过滤条件
     * hasStock(是否有货)/skuPrice/brandId catalog3Id attrs
     * hasStock=0/1
     * skuPrice=1_500/_500/500_
     */
    private Integer hasStock;   //是否只显示有货 0(无库存)1(有库存)
    private String skuPrice;    //价格区间查询
    private List<Long> brandId; //根据品牌查询
    private List<String> attrs; //按照属性进行筛选
    private Integer pageNum = 1;   //页码
    private String _queryString;    //原生的所有查询条件


}
